<template>
  <div class="dome2">
    <!-- style="position: absolute;margin-left: 0;margin-top: 0;" -->
    <div>dome2</div>
    <Dome3 />
  </div>
</template>

<script>
import Dome3 from "./dome3.vue";

export default {
  name: 'TestDomeTwo',
  data () {
    return {

    }
  },
  props: ['url'],
  components: { Dome3 },
  beforeCreate () {
    // console.log('父组件传值->', this.url);
    console.log('创建前->beforeCreate->dome2');
  },
  created () {
    // console.log('父组件传值->', this.url);
    console.log('创建->created->dome2');
  },
  beforeUpdate () {
    // console.log('父组件传值->', this.url);
    console.log('更新前->beforeUpdate->dome2');
  },
  updated () {
    // console.log('父组件传值->', this.url);
    console.log('更新->updated->dome2');
  },
  beforeMount () {
    // console.log('父组件传值->', this.url);
    console.log('挂载前->beforeMount->dome2');
  },
  mounted () {
    // console.log('父组件传值->', this.url);
    console.log('挂载->mounted->dome2');
  },
  beforeUnmount () {
    // console.log('父组件传值->', this.url);
    console.log('销毁前->beforeUnmount->dome2');
  },
  unmounted () {
    // console.log('父组件传值->', this.url);
    console.log('销毁->unmounted->dome2');
  }
}
</script>

<style scoped>
.dome2 {
  width: 800px;
  height: 400px;
  background-color: lightgreen;
  display: flex;
  justify-content: center;
}
</style>
